package cn.sdormitory.service;

import com.alibaba.fastjson.JSONObject;

import java.io.IOException;
import java.util.Map;

/**
 * @author: lx
 * @date: 2023/11/15 11:38
 * @description:
 */
public interface AppWeChatService {

    /**
     * 更新用户表存储openId
     * @param code
     * @param role
     * @return
     */
    Integer saveOpenId(String code,String role);
    
    /**
     * 获取openId
     * @author alex
     * @param: paramMap
     * @date 2024/10/22 14:30
     * @return
     */
    Map<String, String> getWxOpenId(Map<String, String> paramMap) throws IOException;
    
    /**
     * 获取电话号码
     * @author alex
     * @param: paramMap
     * @date 2024/10/22 15:32
     * @return
     */
    JSONObject getPhone(Map<String, String> paramMap);
}
